Ext.define('AmpleHarvest.util.UrlBuilder',
		{
			singleton					: true,

			getProcessingDetailsUrl		: function(timestamp)
			{
				return '/webservices/rest/metrics/process/day/' + timestamp;
			},

			getProcessingSummaryUrl		: function()
			{
				//return obj_config.C_STR_EXTERNAL_PATH+'/rest/generalscare/metrics/process/summary.php';
				return '/webservices/rest/metrics/process/summary';
			},

			getChartImageExportUrl		: function()
			{
				return obj_config.C_STR_EXTERNAL_PATH+'/rest/export/graphic/svg.php';
			},
			
			getSVG2ImageUrl		: function()
			{
				return obj_config.C_STR_EXTERNAL_PATH+'/rest/export/graphic/svg.php';
				//return 'http://192.168.20.127/AmpleHarvest/External/rest/export/graphic/svg.php';
			},

			getErrorSummaryUrl			: function()
			{
				return obj_config.C_STR_EXTERNAL_PATH+'/rest/generalscare/metrics/error/summary.php';
			},

			getErrorSummaryPieChartUrl	: function()
			{
				return obj_config.C_STR_EXTERNAL_PATH+'/rest/generalscare/metrics/error/summaryPie.php';
			},

			getErrorDetailsUrl			: function(timestamp)
			{
				return '/webservices/rest/metrics/error/day/' + timestamp;
			},

			getProcessingSummaryCsvUrl	: function()
			{
				return '/webservices/rest/metrics/process/summary/csv';
			},

			getProcessingDetailCsvUrl	: function(timestamp)
			{
				return '/webservices/rest/metrics/process/day/csv/' + timestamp;
			},

			getErrorSummaryCsvUrl		: function()
			{
				return '/webservices/rest/metrics/error/summary/csv';
			},

			getErrorDetailCsvUrl		: function(timestamp)
			{
				return '/webservices/rest/metrics/error/day/csv/' + timestamp;
			}
		}
);
